package informationsystem

class BaseController {
	
	protected isLoggedIn(){
		 if(!session.user){
			 params.msg = "Please login to access admin."
			 redirect(controller: 'User' , action : 'index')
			 return false
		 }
		}

    def beforeInterceptor = [action: this.&isLoggedIn]
		
}
